package com._54programer.ioc.config.beans.lifecycle;

import org.springframework.beans.factory.DisposableBean;
import org.springframework.beans.factory.InitializingBean;

public class Cat implements InitializingBean, DisposableBean {

    public Cat(){
        System.out.println("Cat create");
    }

    public void initCat(){
        System.out.println("Cat initCat");
    }

    public void destroyCat(){
        System.out.println("Cat destroyCat");
    }

    public void destroy() throws Exception {
        System.out.println("Cat destroy");
    }

    public void afterPropertiesSet() throws Exception {
        System.out.println("Cat afterPropertiesSet");
    }

}
